# 注册视图集
from rest_framework.routers import DefaultRouter

from user import views

# trailing_slash 设置是否自动添加路由后面的/
router = DefaultRouter(trailing_slash=False)

router.register("user",views.UserView,basename='user') #注册的视图集叫user

router.register('userTaskhub',views.UserTaskHub,basename='userTaskhub') #该视图集是 学生中心的

